home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 4
/
The Arsenal Files 4 (Arsenal Computer).ISO
/
casm
/
au116-as.exe
/
UTIL
/
FIX_PATH.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-05
|
446b
|
20 lines
#include "..\au.hpp"
/*************************************************************************/
void fix_path(char *path)
{
char *ptr;
ptr = path;
while (*ptr != '\0')
{
if (*ptr == '/') /* Replace forward slash with backslash */
*ptr = '\\';
else if (*ptr == ',') /* Replace comma with period */
*ptr = '.';
else if (*ptr == ';') /* Replace ; with : */
*ptr = ':';
ptr++;
}
return;
}